The complexity of the task is a sensitive issue, and as the network grows, it
faces more and more difficulties. The algorithms used need more and more
hash power to solve. The answer to the PoW problem or mathematical
puzzle is called the hash.
The speed and accuracy of the work of the blockchain system depend on it.
The problem should not be too complicated, and if it is, the block
generation takes a lot of time. The transactions may get stuck without
execution, and the workflow hangs for some time as a result. Block
generation will be kind of a miracle if the problem cannot be solved in a
definite time frame.
However, if the problem is too easy to solve, it is prone to vulnerabilities of
DoS attacks and spam.
You need to check the solution; not all nodes are capable of analyzing if the
calculations are correct.
For this, you have to trust other nodes, which violates one of the most
important features of blockchain, i.e., transparency.
Implementation of this algorithm in blockchain
The miners solve the puzzle forming the new block and confirming the
transactions.
It depends on the number of users; the current power and the network load
determine how complex a puzzle is. The security is increased, and block
violation is prevented as the hash of each block contains the hash of the
previous block.